package com.han.neo4jjava.core.location;

import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class LocationCreateService {

    private final LocationRepo locationRepo;

    public Location save(Location location) {
        return locationRepo.save(location);
    }

    public void saveAll(List<Location> locations) {
        locationRepo.saveAll(locations);
    }
}
